﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PortalWeb.Core.Entity
{
    public enum ConfigItemType
    {
        SiteConfig,
        WeixinConfig
    }

    [Table("ConfigItems", Schema = "dbo")]
    public class ConfigItem
    {
        /// <summary>
        /// 配置名
        /// </summary>
        [Key]
        public string Name { get; set; }

        /// <summary>
        /// 配置类型
        /// </summary>
        public ConfigItemType Type { get; set; }
        /// <summary>
        /// 配置值
        /// </summary>
        public string Value { get; set; }

        /// <summary>
        /// 描述
        /// </summary>
        public string Remarks { get; set; }

        /// <summary>
        /// 操作人
        /// </summary>
        public string Operator { get; set; }

        /// <summary>
        /// 操作时间
        /// </summary>
        public DateTime OperationTime { get; set; }
    }
}
